package com.woniuxy.goods.user.service;

import com.netflix.discovery.converters.Auto;
import com.woniuxy.goods.module.user.User;
import com.woniuxy.goods.user.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;



@Service
public class UserServcie {
    @Autowired
    UserMapper userMapper ;

    public User findUserByNameAndPass(String name, String pass){
        return userMapper.selectUserByNameAndPass(name,pass);
    }

    public User findUserByKey(int id) {
        return userMapper.selectUserByKey(id);
    }
}
